home *** CD-ROM | disk | FTP | other *** search
/ Sounds Terrific 1 / Sounds Terrific CD (1994)(Weird Science)(Disc 2 of 2)[!][Amiga-PC].iso / modules / r / rasput01.mod < prev    next >
Encoding:
Text File  |  1994-08-04  |  1.7 KB  |  62 lines

  1. Mod to add doors menu.
  2. Rasputin #1 @2629
  3. Mon Dec 09 22:39:09 1991
  4. Mod Name: RASPUT01.MOD
  5. Difficulty: REAL EASY
  6. Description: Allows for a doors menu like all other menus.
  7.  
  8. Step #1
  9. -------
  10. Load BBSUTL1.C and search for "void do_chains()".  Search for this near the
  11. bottom of the void and make these changes:
  12. "=" Same        "+" Add         "x" Comment out or delete
  13.  
  14.  
  15. =  }
  16. =  if (mapp==1) {
  17. =    run_chain(map[0]);
  18. =    return;
  19. =  }
  20. x  show_chains(&mapp,map);
  21. +  printmenu(15);
  22. =  done=0;
  23. =  do {
  24. =    prt(2,"Which (Q=Quit, ?=List) : ");
  25. =    ss=mmkey(2);
  26. =    i=atoi(ss);
  27. =    if ((i>0) && (i<=mapp)) {
  28. =      done=1;
  29. =      run_chain(map[i-1]);
  30. =    } else
  31. =      if (strcmp(ss,"Q")==0)
  32. =        done=1;
  33. =      else
  34. =        if (strcmp(ss,"?")==0)
  35. x          show_chains(&mapp,map);
  36. +          printmenu(15);
  37.   } while ((!hangup) && (!done));
  38. }
  39.  
  40. Save it.
  41.  
  42.  
  43. Step #2
  44. -------
  45. Load up MENUS.MSG in your Gfiles directory and add another menu (#15) to the
  46. bottom.  If you have already got a #15 or more menus, you will need to add to
  47. bottom, and put the number of that menu in the file above between the
  48. parentheses in the two printmenu commands that were added.
  49. Also, create an Ansi menu and name it MENU15.ANS (or whatever menu it is.)
  50. Remember, using this method you will have to manually adjust the menus
  51. whenever you add or subtract another door.
  52.  
  53. Step #3
  54. -------
  55.  
  56. Compile.
  57.  
  58.  
  59. This is my first mod, so of course it is simple.  I am posting it because
  60. another local sysop saw the modification and wanted it.  Any questions leave
  61. mail at 1@2629.  Also, if anybody actually uses this, maybe you'd like to
  62. leave me a note.  Thanks!  Rasputin.